export const asyncRoutes = {
  // 异步路由配置
  // TODO 用户中心后台不支持2级以上的菜单结构数据返回
  SettleLayout: {
    path: '/settle',
    redirect: '/settle-bill-manage',
    component: () => import('@/layout/Index.vue'),
    name: 'SettleLayout',
    menuId: 'settle',
    meta: {
      title: 'settle', titleSign: 'settle'
    },
  },
  SettleEnergy: {
    path: '/energy',
    redirect: '/doashboard',
    name: 'SettleEnergy',
    meta: {
      title: '能耗管理', icon: 'nhgl', titleSign: 'settle', iconType: 'svg'
    }
  },
  SettleDashboard: {
    path: '/doashboard',
    component: () => import('@/views/settle/Dashboard.vue'),
    name: 'SettleDashboard',
    meta: {
      title: '能耗总览', titleSign: 'settle',
    }
  },
  SettleReport: {
    path: '/report',
    component: () => import('@/views/settle/Report.vue'),
    name: 'SettleReport',
    meta: {
      title: '能耗报表', titleSign: 'settle',
    }
  },
  SettleMonitor: {
    path: '/monitor',
    redirect: '/house',
    name: 'SettleMonitor',
    meta: {
      title: '监控管理', icon: 'jkgl', titleSign: 'settle', iconType: 'svg'
    }
  },
  SettleHouse: {
    path: '/house',
    component: () => import('@/views/settle/House.vue'),
    name: 'SettleHouse',
    meta: {
      title: '房间监控', titleSign: 'settle',
    }
  },
  SettleDetails: {
    path: '/details',
    component: () => import('@/views/settle/Details.vue'),
    name: 'SettleDetails',
    meta: {
      title: '监控详情', titleSign: 'settle',
    }
  },
  SettleDetailsHistory: {
    path: '/detailsHistory/:id/:equipId',
    component: () => import('@/views/settle/DetailsHistory.vue'),
    name: 'SettleDetailsHistory',
    meta: {
      title: '监控详情-变量历史', titleSign: 'settle', hidden: true, activeMenu: '/details',
    },
  },
  SettleFinance: {
    path: '/finance',
    redirect: '/balance',
    name: 'SettleFinance',
    meta: {
      title: '财务管理', icon: 'cwbtn', titleSign: 'settle', iconType: 'svg'
    }
  },
  SettleBalance: {
    path: '/balance',
    component: () => import('@/views/settle/Balance.vue'),
    name: 'SettleBalance',
    meta: {
      title: '用户余额', titleSign: 'settle',
    }
  },
  SettleDetailed: {
    path: '/detailed',
    component: () => import('@/views/settle/Detailed.vue'),
    name: 'SettleDetailed',
    meta: {
      title: '账单明细', titleSign: 'settle',
    }
  },
  SettleRecord: {
    path: '/record',
    component: () => import('@/views/settle/Record.vue'),
    name: 'SettleRecord',
    meta: {
      title: '交易记录', titleSign: 'settle',
    }
  },
  SettleProject: {
    path: '/project',
    redirect: '/manage',
    name: 'SettleProject',
    meta: {
      title: '项目管理', icon: 'xmbtn', titleSign: 'settle', iconType: 'svg'
    }
  },
  SettleManage: {
    path: '/manage',
    component: () => import('@/views/settle/Manage.vue'),
    name: 'SettleManage',
    meta: {
      title: '项目管理', titleSign: 'settle',
    }
  },
  SettleMerchant: {
    path: '/merchant',
    component: () => import('@/views/settle/Merchant.vue'),
    name: 'SettleMerchant',
    meta: {
      title: '商户管理', titleSign: 'settle',
    }
  },
  SettleTemplate: {
    path: '/template',
    component: () => import('@/views/settle/Template.vue'),
    name: 'SettleTemplate',
    meta: {
      title: '收费模板', titleSign: 'settle',
    }
  },
  SettlementManagement: {
    path: '/settlement',
    redirect: '/merchant',
    name: 'SettlementManagement',
    meta: {
      title: '结算管理', icon: 'cjgl', titleSign: 'settle', iconType: 'svg'
    }
  },
  SettleWorkbench: {
    path: '/settle-work-bench',
    component: () => import('@/views/settle/SettleWorkbench.vue'),
    name: 'SettleWorkbench',
    meta: {
      title: '结算工作台', titleSign: 'settle',
    }
  },
  CollectData: {
    path: '/collect-data',
    component: () => import('@/views/settle/CollectData.vue'),
    name: 'CollectData',
    meta: {
      title: '采集数据', titleSign: 'settle',
    }
  },
  SettleBillManage: {
    path: '/settle-bill-manage',
    component: () => import('@/views/settle/SettleBillManage.vue'),
    name: 'SettleBillManage',
    meta: {
      title: '结算单管理', titleSign: 'settle',
    }
  },
  BillingSetting: {
    path: '/billing-setting',
    component: () => import('@/views/settle/BillingSetting.vue'),
    name: 'BillingSetting',
    meta: {
      title: '计费配置', titleSign: 'settle',
    }
  },
  Enterprise: {
    path: '/enterprise',
    component: () => import('@/views/settle/EnterpriseManagement.vue'),
    name: 'Enterprise',
    meta: {
      title: '企业管理', titleSign: 'settle',
    }
  },  
  CollectLayout: {
    path: '/collect',
    redirect: '/scene',
    component: () => import('@/layout/Index.vue'),
    name: 'CollectLayout',
    menuId: 'collect',
    meta: {
      title: 'collect', titleSign: 'collect'
    },
  },
  CollectScene: {
    path: '/scene',
    redirect: '/sceneList',
    name: 'CollectScene',
    meta: {
      title: '场景管理', icon: 'cjgl', titleSign: 'collect', iconType: 'svg'
    }
  },
  CollectSceneList: {
    path: '/sceneList',
    component: () => import('@/views/collect/SceneList.vue'),
    name: 'CollectSceneList',
    meta: {
      title: '场景列表', titleSign: 'collect',
    }
  },
  CollectEquipment: {
    path: '/equipment',
    redirect: '/equipmentTemplate',
    name: 'CollectEquipment',
    meta: {
      title: '设备管理', icon: 'sbgl', titleSign: 'collect', iconType: 'svg'
    }
  },
  CollectEquipmentList: {
    path: '/equipmentList',
    component: () => import('@/views/collect/EquipmentList.vue'),
    name: 'CollectEquipmentList',
    meta: {
      title: '设备列表', titleSign: 'collect',
    }
  },
  AcqEquipStatus: {
    path: '/AcqEquipStatus',
    component: () => import('@/views/collect/AcqEquipStatus.vue'),
    name: 'AcqEquipStatus',
    meta: {
      title: '设备状态', titleSign: 'collect',
    }
  },
  CollectEquipmentTemplate: {
    path: '/equipmentTemplate',
    component: () => import('@/views/collect/EquipmentTemplate.vue'),
    name: 'CollectEquipmentTemplate',
    meta: {
      title: '设备模板', titleSign: 'collect',
    }
  },
  CollectEquipmentVar: {
    path: '/equipmentVar',
    component: () => import('@/views/collect/EquipmentVar.vue'),
    name: 'CollectEquipmentVar',
    meta: {
      title: '变量列表', titleSign: 'collect', hidden: true, activeMenu: '/equipmentTemplate'
    }
  },
  RemoteList: {
    path: '/remote',
    component: () => import('@/views/collect/RemoteList.vue'),
    name: 'RemoteList',
    meta: {
      title: '远程配置列表', titleSign: 'collect', 
    },
  },
  RemoteDetail: {
    path: '/remoteDetail',
    component: () => import('@/views/collect/RemoteDetail.vue'),
    name: 'RemoteDetail',
    meta: {
      title: '远程配置详情', titleSign: 'collect', hidden: true, activeMenu: '/remote'
    },
  },
  CollectGateway: {
    path: '/gateway',
    redirect: '/gatewayList',
    name: 'CollectGateway',
    meta: {
      title: '网关管理', icon: 'wggl', titleSign: 'collect', iconType: 'svg'
    }
  },
  CollectGatewayList: {
    path: '/gatewayList',
    component: () => import('@/views/collect/GatewayList.vue'),
    name: 'CollectGatewayList',
    meta: {
      title: '网关列表', titleSign: 'collect',
    }
  },
  OtaHome: {
    path: '/otaHome',
    redirect: '/ota',
    name: 'OtaHome',
    meta: {
      title: 'OTA升级', icon: 'cjgl', titleSign: 'collect', iconType: 'svg'
    }
  },
  OtaList: {
    path: '/ota',
    component: () => import('@/views/collect/OtaList.vue'),
    name: 'OtaList',
    meta: {
      title: '升级包列表', titleSign: 'collect', 
    },
  },
  OtaDetail: {
    path: '/otaDetail',
    component: () => import('@/views/collect/OtaDetail.vue'),
    name: 'OtaDetail',
    meta: {
      title: '升级包详情', titleSign: 'collect', hidden: true, activeMenu: '/ota'
    },
  },
  // 系统管理
  SystemLayout: {
    path: '/system',
    redirect: '/systemSettings/menu',
    component: () => import('@/layout/Index.vue'),
    name: 'SystemLayout',
    menuId: 'system',
    meta: {
      title: 'system', titleSign: 'system'
    },
  },
  SystemMenu: {
    path: '/systemSettings/menu',
    component: () => import('@/views/system-settings/Index.vue'),
    name: 'SystemMenu',
    meta: {
      title: '菜单管理', 
      titleSign: 'system', 
      link: '#/fmanagement/fmenu'
    }
  },
  SystemOrganization: {
    path: '/systemSettings/organization',
    component: () => import('@/views/system-settings/Index.vue'),
    name: 'SystemOrganization',
    meta: {
      title: '组织管理',
      titleSign: 'system',
      link: '#/fmanagement/forg',
    },
  },
  SystemRole: {
    path: '/systemSettings/role',
    component: () => import('@/views/system-settings/Index.vue'),
    name: 'SystemRole',
    meta: {
      title: '角色管理',
      titleSign: 'system',
      link: '#/fmanagement/frole',
    },
  },
  SystemUser: {
    path: '/systemSettings/user',
    component: () => import('@/views/system-settings/Index.vue'),
    name: 'SystemUser',
    meta: {
      title: '用户管理',
      titleSign: 'system',
      link: '#/fmanagement/fuser',
    },
  },
  BusinessResourcce: {
    path: '/systemSettings/businessResource',
    component: () => import('@/views/system-settings/Index.vue'),
    name: 'BusinessResourcce',
    meta: {
      title: '业务资源',
      titleSign: 'system',
      link: '#/fmanagement/fbusinessResource',
    },
  },
  SystemResource: {
    path: '/systemSettings/resource',
    component: () => import('@/views/system-settings/Index.vue'),
    name: 'SystemResource',
    meta: {
      title: '资源管理',
      titleSign: 'system',
      link: '#/fmanagement/fresource',
    },
  },
};
